#include <iostream>
#include <vector>
#include <numeric>

using namespace std;


int minimumLevels(vector<int>& possible)
{
    vector<int> score1;
    vector<int> score2;
    int alice = 0, bob = 0;
    for (int i = 0; i < possible.size() - 1; i++)
    {
        if (possible[i] == 1)
            alice += 1;
        else
            alice -= 1;
        bob = 0;
        for (int j = i + 1; j < possible.size(); j++)
        {
            if (possible[j] == 1)
                bob += 1;
            else
                bob -= 1;
        }
        score1.push_back(alice);
        score2.push_back(bob);
    }
    int ret = -1;
    int score = 0;
    for (int i = 0; i < score1.size(); i++)
    {
        if (score1[i] - score2[i] > score)
        {
            score = score1[i] - score2[i];
            ret = i;
        }
    }
    return ret;
}
//
//
//int main()
//{
//    vector<int> poss = { 1,1,1,1,1 };
//
//    int ret = minimumLevels(poss);
//
//    cout << ret << endl;
//}


int main()
{
	vector<int> num = { 10,20,30,40,50 };
	int ret1 = accumulate(num.begin(), num.begin() + 1,0);
	cout << ret1 << endl;
}